package com.hfxt.dao;

import com.hfxt.entity.Uses;
import org.apache.ibatis.annotations.Param;

import  java.util.*;
public interface UsesDao {




    public Uses getUserById(Integer userid);
    public List<Uses> getuses();

    //当参数只一个时  @Param 可以不加  排序是特殊情况
    //当参数多个时  @Param 必须（也不是决对的）加
    public List<Uses> getusesByUsername(String name);

    public List<Uses> getusesByChoice(@Param("choice") String choice);

    public List<Uses> getusesByCondition1(@Param("name") String name,@Param("money") Integer money);

    public List<Uses> getusesByCondition2(Map<String,Object> maps);

    public List<Uses> getusesByCondition3(Uses uses);

    public List<Uses> getusesByCondition4(@Param("uses") Uses uses);

    public List<Uses> getusesByCondition5(Integer[] roleids);

    public List<Uses> getusesByCondition6(List<Integer> roleids);

    public int addUses(@Param("uses")Uses uses);

    public  int delUses(Integer userid);

    public int updateUses(@Param("uses")Uses uses);




    //纯分页 不带条件
    public int getcount();
    public List<Uses> getusesbypage(@Param("pageIndex") Integer pageIndex,@Param("pageSize") Integer pageSize);

    //带条件分页

    public int getcount2(@Param("uses")Uses uses);
    public List<Uses> getusesbypage2(@Param("pageIndex") Integer pageIndex,
                                     @Param("pageSize") Integer pageSize, @Param("uses")Uses uses)
           ;

}
